package Com.amit.synchronization;

public class Lab5  extends Thread{

	@Override
	public void run() {
		
		for(int i=1;i<=5;i++)
		{
			System.out.println(i);
		}
		
		
	}
	
	public static void main(String[] args) {
		
		Lab5 l=new Lab5();
		l.start();
		
		l.interrupt();
		
		
		System.out.println("rest");

	}

}
